package com.ktg.mes.wm.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ktg.mes.md.domain.MdItem;
import com.ktg.mes.util.LeftJoin;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.BaseEntity;


/**
 * 物料拆分记录对象 wm_item_split_line
 *
 * @author byteco
 * @date 2023-01-06
 */

@Data
@Accessors(chain = true)
@TableName("wm_item_split_line")
public class WmItemSplitLine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 行ID */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;


    /** 拆分入库ID */
    @Excel(name = "拆分入库ID")
    private Long itemSplitLineId;



    /** 组装物料ID */
    @Excel(name = "组装物料ID")
    private Long fromItemRecptLineId;


    /** 组装物料组成ID */
    @Excel(name = "组装物料组成ID")
    private Long fromAssembleRecptLineId;


    /** 物料ID */
    @Excel(name = "物料ID")
    @LeftJoin(leftTable = "md_item",leftTableColumn = "item_id",selectColumn = MdItem.mainSelectColumnNotId)
    private Long itemId;


    /** 入库仓库 */
    @Excel(name = "入库仓库")
    @LeftJoin(leftTable = "wm_warehouse",leftTableColumn = "warehouse_id",selectColumn = WmWarehouse.mainColumnNotId)
    private Long warehouseId;


    /** 物料码 */
    @Excel(name = "物料码")
    private String meterialCode;


    /** 批次号 */
    @Excel(name = "批次号")
    private String batchCode;


    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal quantityRecived;


    /** 使用数量 */
    @Excel(name = "使用数量")
    private BigDecimal quantityOut;





}
